Skip to content

Conversation

@spoons-and-mirrors
Copy link
Contributor

@spoons-and-mirrors spoons-and-mirrors commented Dec 30, 2025

EDIT: This PR adds parallel susbtask ability and fix model priority. Now uses command file specified model before agent's configured model

@spoons-and-mirrors spoons-and-mirrors marked this pull request as draft December 30, 2025 23:03
@spoons-and-mirrors spoons-and-mirrors marked this pull request as ready for review December 31, 2025 03:45
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 31, 2025
…eritance, command.execute.before hook

Merges changes from anomalyco#6478:
- Add parallel subtask execution via Promise.all()
- Fix model inheritance for subtasks with parent context restoration
- Add command.execute.before plugin hook for pre-execution logic
- Improve model resolution with proper fallback chain:
  command frontmatter > agent model > session model > default model
- Extend SubtaskPart schema with model, parentAgent, parentModel fields
- Update task tool to use ctx.extra.model for model override

Closes #225
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 31, 2025
…fixes (#229)

* fix(opencode): restore variant field in session prompt API

The variant field was accidentally removed during a cherry-pick that fixed
plugin commands. This restores variant support in PromptInput, CommandInput,
and the corresponding message/command handlers.

* refactor(opencode): extract CORS logic to dedicated module

Move CORS origin validation to cors.ts for better testability and add
support for *.shuv.ai domain alongside *.opencode.ai.

* feat(app): add server URL persistence and welcome screen for hosted environments

- Persist active server selection across sessions (server.v4 storage)
- Add WelcomeScreen for hosted environments when server connection fails
- Add connection state machine (connecting/ready/needs_config/error)
- Add hosted environment detection utilities

* feat(app): improve review pane with width constraints and empty state

- Add REVIEW_PANE constants for centralized width configuration
- Enforce max review pane width ratio (33% of viewport)
- Handle window resize to maintain width constraints
- Add empty state UI when no files to review

* refactor(app): reorder header buttons for better UX

- Move Theme/Font pickers before Review and Terminal toggles
- Add clarifying comments for button groups

* feat: merge upstream PR anomalyco#6478 - parallel subtasks, model inheritance, command.execute.before hook

Merges changes from anomalyco#6478:
- Add parallel subtask execution via Promise.all()
- Fix model inheritance for subtasks with parent context restoration
- Add command.execute.before plugin hook for pre-execution logic
- Improve model resolution with proper fallback chain:
  command frontmatter > agent model > session model > default model
- Extend SubtaskPart schema with model, parentAgent, parentModel fields
- Update task tool to use ctx.extra.model for model override

Closes #225

---------

Co-authored-by: shuv <shuv@shuv.dev>
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 31, 2025
…eritance, command.execute.before hook

Merges changes from anomalyco#6478:
- Add parallel subtask execution via Promise.all()
- Fix model inheritance for subtasks with parent context restoration
- Add command.execute.before plugin hook for pre-execution logic
- Improve model resolution with proper fallback chain:
  command frontmatter > agent model > session model > default model
- Extend SubtaskPart schema with model, parentAgent, parentModel fields
- Update task tool to use ctx.extra.model for model override

Closes #225
@spoons-and-mirrors spoons-and-mirrors force-pushed the command/execute-before-bundle branch from dda0e54 to c13fbc2 Compare January 6, 2026 23:33
@spoons-and-mirrors spoons-and-mirrors force-pushed the command/execute-before-bundle branch 2 times, most recently from c65be9f to 16acfc8 Compare January 7, 2026 21:44
@spoons-and-mirrors spoons-and-mirrors force-pushed the command/execute-before-bundle branch from 16acfc8 to 720e58c Compare January 10, 2026 23:44
@github-actions
Copy link
Contributor

Hey! Your PR title add command.execute.before hook + allow parallel subtasks + fix model inheritance doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@spoons-and-mirrors
Copy link
Contributor Author

spoons-and-mirrors commented Jan 19, 2026

needs rework with new opencode fixes and addition (model inheritance by dbpolito and command execute before)

EDIT: done

When multiple subtasks are spawned, execute them concurrently using Promise.all instead of sequentially. Only adds one synthetic user message after all subtasks complete.
@spoons-and-mirrors spoons-and-mirrors force-pushed the command/execute-before-bundle branch from 720e58c to ff4ad5e Compare January 22, 2026 05:23
@spoons-and-mirrors spoons-and-mirrors changed the title add command.execute.before hook + allow parallel subtasks + fix model inheritance feat: parallel subtask Jan 22, 2026
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@spoons-and-mirrors spoons-and-mirrors marked this pull request as ready for review January 22, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant